package com.smzd.framework.system.domain;

import com.smzd.core.domain.BaseOwnedEntity;
import com.smzd.framework.annotation.ModuleGroup;

@ModuleGroup(value = "system", moduleNames = "userbinds", moduleName = "userbind")
public class UserBind extends BaseOwnedEntity<User> {
    private static final long serialVersionUID = -1318794463379960503L;
    public static final int AUTH_TYPE_XTWL_CAS = 0;
    public static final int AUTH_TYPE_XTWL_OAUTH = 8;
    public static final int AUTH_TYPE_SINA_WEIBO = 2;
    public static final int AUTH_TYPE_QQ_CONNECT = 1;
    public static final int AUTH_TYPE_RENREN = 4;

    // openid
    private String openid;
    // 头像
    private String avatar;
    // 空间地址
    private String url;
    // 来自
    private String domain;
    // 类型
    private Integer type;
    //AccessToken
    private String accessToken;
    //Expire In
    private Long expireIn;
    //Authentication Date
    private Long authTime;

    /**
     * 获取openid
     * 
     * @return
     */
    public String getOpenid() {
        return openid;
    }

    /**
     * 设置openid
     * 
     * @param openid
     */
    public void setOpenid(String openid) {
        this.openid = openid;
    }

    /**
     * 获取头像
     * 
     * @return
     */
    public String getAvatar() {
        return avatar;
    }

    /**
     * 设置头像
     * 
     * @param avatar
     */
    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    /**
     * 获取空间地址
     * 
     * @return
     */
    public String getUrl() {
        return url;
    }

    /**
     * 设置空间地址
     * 
     * @param url
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * 获取来自
     * 
     * @return
     */
    public String getDomain() {
        return domain;
    }

    /**
     * 设置来自
     * 
     * @param domain
     */
    public void setDomain(String domain) {
        this.domain = domain;
    }

    /**
     * 获取类型
     * 
     * @return
     */
    public Integer getType() {
        return type;
    }

    /**
     * 设置类型
     * 
     * @param type
     */
    public void setType(Integer type) {
        this.type = type;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public Long getExpireIn() {
        return expireIn;
    }

    public void setExpireIn(Long expireIn) {
        this.expireIn = expireIn;
    }

    public Long getAuthTime() {
        return authTime;
    }

    public void setAuthTime(Long authTime) {
        this.authTime = authTime;
    }
}
